#include<string.h>
#include"shm.hpp"
#include"namedPipe.hpp"
int main(){
    shm clientWindow(gCreater);
    sleep(5);
    char *shmRead = (char *)clientWindow.Addr();
    NamedPipe h(Creater);
    h.OpenForSeverRead();
    std::cout << "开始读" << std::endl;
    while(1){
        sleep(1);
        std::cout << "content:" << shmRead << std::endl;
    }
}